<div class="form-group">
    <label class="col-sm-2 control-label must">海报名称</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'poster' $item}
        <input type="text" name="title" class="form-control" value="{$item['title']}" data-rule-required="true" />
        {else}
        <div class='form-control-static'>{$item['title']}</div>
        {/if}
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label must">海报类型</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'poster' $item}
        <label class="radio-inline">
            <input type="radio" name="type" value="1" {if $item['type']==1}checked{/if} /> 商城海报
        </label>

        <label class="radio-inline">
            <input type="radio" name="type" value="2" {if $item['type']==2}checked{/if} /> 小店海报
        </label>

        <label class="radio-inline">
            <input type="radio" name="type" value="3" {if $item['type']==3}checked{/if} /> 商品海报
        </label>

        <label class="radio-inline"> 
            <input type="radio" name="type" value="4" {if $item['type']==4}checked{/if} /> 关注海报
        </label>
        {else}
        <div class='form-control-static'>
            {if $item['type']==1}商城海报{/if}
            {if $item['type']==2}小店海报{/if}
            {if $item['type']==3}商品海报{/if}
            {if $item['type']==4}关注海报{/if}
        </div>
        {/if}
    </div> 
</div> 

<div class="form-group">
    <label class="col-sm-2 control-label must">回复关键词</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'poster' $item}
        <input type="text" name="keyword2" class="form-control" value="{$item['keyword2']}" data-rule-required="true" />
        <span class='help-block'>如果是商品海报 ，回复关键词是 关键词+商品ID</span>
        {else}
        <div class='form-control-static'>{$item['keyword']}</div>
        {/if}
    </div>
</div>

<div class="form-group">
    <label class="col-sm-2 control-label">是否默认</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'poster' $item}
        <label class="radio-inline">
            <input type="radio" name="isdefault" value="1" {if $item['isdefault']==1}checked{/if} /> 是
        </label>
        <label class="radio-inline">
            <input type="radio" name="isdefault" value="0" {if empty($item['isdefault'])}checked{/if} /> 否
        </label>
        <span class='help-block'>是否是海报类型的默认设置，一种海报只能一个默认设置</span>
        {else}
        <div class='form-control-static'>{if $item['isdefault']==1}是{else}否{/if}</div>
        {/if}
    </div> 
</div>
<div class="form-group">
    <label class="col-sm-2 control-label">生成等待文字</label>
    <div class="col-sm-9 col-xs-12">
        {ife 'poster' $item}

        <textarea name="waittext" class="form-control"  >{$item['waittext']}</textarea>
        <span class="help-block">例如：您的专属海报正在拼命生成中，请等待片刻...</span>
        {else}
        <div class='form-control-static'>{if empty($item['waittext'])}未填写{else}{$item['waittext']}{/if}</div>
        {/if}

    </div>
</div>

